package com.lk.server.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 命名
 *
 * @author kun.li
 */
@Data
@ConfigurationProperties("namic")
@Component
public class NamicServiceConfig implements Serializable {

    private String ip;

    private int port;

    private String address;

    @Value("${spring.application.name}")
    private String serviceName;
}
